package com.example.user1.enums;

import lombok.Getter;

@Getter
public enum ErrorEnum implements BaseEnum {
    BIND_ERROR(1, "参数异常", ""),
    SERVER_ERROR(1,"服务器异常",""),
    USER_NOT_EXIST(1,"用户不存在",""),
    FILE_NOT_EXIST(1,"文件不存在",""),
    SERVICE_NOT_EXIST(1,"服务不存在",""),
    VERIFICATION_CODE_EXPIRED(1,"验证码已过期",""),
    USERNAME_EXISTED(1,"用户名已存在",""),
    PHONE_EXISTED(1,"手机号已存在",""),

    ;
    private final Integer code;
    private final String message;
    private final String desc;

    ErrorEnum(int code, String message, String desc) {
        this.code = code;
        this.message = message;
        this.desc = desc;
    }
}
